package com.fdd.spring.aop.aspectjexercise;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopAspectExerciseTest {
    @Test
    public void test1(){
        ApplicationContext ioc = new ClassPathXmlApplicationContext("beans09.xml");
        UsbInterface usbInterface = (UsbInterface) ioc.getBean("phone");
//        UsbInterface usbInterface1 = ioc.getBean("camera",UsbInterface.class);
        usbInterface.work();
//        usbInterface1.work();
    }
}
